package org.nimi317.web_gis.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nimi317.web_gis.entity.ProvinceQuality;
import org.nimi317.web_gis.form.post.ProvinceRenderPost;
import org.nimi317.web_gis.entity.Province;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author thunderobot
 */
public interface ProvinceService extends IService<Province> {

    List<ProvinceQuality> getHistory(ProvinceRenderPost post);

    IPage<ProvinceQuality> getHistory(Integer id, List<LocalDateTime> range);

    List<ProvinceQuality> getHistoryList(Integer id, List<LocalDateTime> range);

    List<Object> getAreaCodes(Integer id);

    /**
     * 获取最近24小时的空气质量
     */
    List<ProvinceQuality> getRecurrent(Integer id);

    List<ProvinceQuality> getRealTime();
}
